package main

import "fmt"

func main() {
	slice2()
}

func slice2() {
	ints := make([]int, 0)
	for i := 0; i < 100; i++ {
		ints = append(ints, i)
	}

	results := ints[:2]
	fmt.Println(results)
}

func slice1() {
	slice := []int{1, 2, 3}

	fmt.Printf("slice address = %p\n", cap(slice))

	for i := range slice {
		fmt.Printf("element address = %p, element val = %v\n", &slice[i], slice[i])
	}
}
